package com.rahwi.rahwi_server.Service.Interface;

import com.rahwi.rahwi_server.Entity.User;

import java.util.List;
import java.util.Optional;

/**
 * @Interface IUserService
 * @Description
 * @Date 2021/12/8 19:14
 * @Autor mjw
 * @Version 1.0
 */
public interface IUserService {

    User getUserById(int id);

    Optional<User> getUserByEmail(String email);

    List<User> getUserByName(String name);

    User getUserByToken(String token);
    void saveUser(User user);

    void deleteUser(User user);

    void modifyUser(User user);
}
